package lesson.c6.mediator;

public class Gasoline {
	private float price;
	
	private float change ;
	
	public Gasoline(float price){
		this.price = price;
	}
	
	public float getChange(){
		return change;
	}
	
	public float getPrice(){
		return price;
	}
	
	public void setPrice(float price){
		this.price = price;
	}
	
	public void setPrice(int price, Mediator m){
		change = (price - this.price)/ this.price;
		this.price = price;
		m.GasolineAffectOil();
	}
}
